﻿@model IEnumerable<WebSiteFool.Models.Comment>
<ul>
    @if (Model != null && Model.Count() > 0)
    {
        <div>
            Comments:</div>
        foreach (var item in Model.OrderByDescending(item => item.CreateDate))
        {
        <li id=@item.Id>
            <div class="comment-title">@item.User.UserName - @item.CreateDate</div>
            <div class="comment-content">@item.Content</div>
        </li>
        }
    }
</ul>
